package cn.lix.sc.rpc.oauth2.service.impl;

import cn.lix.sc.rpc.oauth2.dao.TbPermissionDao;
import cn.lix.sc.rpc.oauth2.entity.TbPermission;
import cn.lix.sc.rpc.oauth2.service.TbPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限表(TbPermission)表服务实现类
 *
 * @author makejava
 * @since 2021-05-13 22:25:46
 */
@Service("tbPermissionService")
public class TbPermissionServiceImpl extends ServiceImpl<TbPermissionDao, TbPermission> implements TbPermissionService {

    @Override
    public List<TbPermission> getPermissionByUserId(Long userId) {
        return this.baseMapper.getPermissionByUserId(userId);
    }

}
